import { UserContext, TokenContext} from "../context";
import {useContext} from "react";

const useUserToken = () => {
  const user = useContext(UserContext);
  const token = useContext(TokenContext);

  //TODO:也可以做一些额外的操作，然后封装到方法中，把方法return出去

  return {
    user,
    token
  }
}

export default useUserToken;